package com.eastfair.common.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.eastfair.annotation.annotation.vo.VoInfo;
import com.eastfair.annotation.model.EchoVO;
import com.eastfair.core.base.entity.Entity;
import com.eastfair.core.base.entity.SuperEntity;
import com.eastfair.annotation.model.BaseVoGroupClass;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.Map;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 系统附件表
 * </p>
 *
 * @author clm
 * @since 2022-06-09
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AttachmentFileVO  implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;
    /**
     * 项目id
     */
    private Long projectId;

    /**
     * 子系统id
     */
    private Long subsystemId;

    /**
     * 租户id
     */
    private Long tenantId;

    /**
     * 系统code
     */
    private String systemCode;

    /**
     * 客户id，线索id，联系人id，场地id
     */
    private Long businessId;

    /**
     * 模块名(枚举维护)
     */
    private String businessType;

    /**
     * 附件名称
     */
    private String attachmentName;

    /**
     * 附件格式
     */
    private String attachmentSubfix;

    /**
     * 附件大小(单位kb)
     */
    private String attachmentSize;

    /**
     * 附件地址
     */
    private String attachmentUrl;

    /**
     * 备注
     */
    private String remark;

    /**
     * 上传人员ID
     */
    @ApiModelProperty(value = "上传人员ID")
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long createdBy;

    /**
     * 上传人员名称
     */
    @ApiModelProperty(value = "上传人员名称")
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private String createdByName;

    /**
     * 上传时间
     */
    @ApiModelProperty(value = "上传时间")
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private LocalDateTime createTime;

}
